package org.wangblue.facade.impl;

import org.wangblue.facade.ITravelFacade;
import org.wangblue.subsystem.FlightService;
import org.wangblue.subsystem.HotelService;

/**
 * @Description: 外观者实现类
 * @Author: WangBlue
 * @Create: 2024-09-05 09:19
 * @Version: 1.0
 **/

public class TravelFacadeServiceImpl implements ITravelFacade {
    private final FlightService flightService;
    private final HotelService hotelService;

    public TravelFacadeServiceImpl(){
        flightService = new FlightService();
        hotelService = new HotelService();
    }

    @Override
    public void depart() {
        hotelService.bookHotel();
        flightService.bookFlight();
    }
}
